package com.zhibang.mapper;

import com.zhibang.entity.AccountRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
* @author lewin
* @description 针对表【account_role(账号角色中间表)】的数据库操作Mapper
* @createDate 2025-03-05 09:18:15
* @Entity com.zhibang.entity.AccountRole
*/
public interface AccountRoleMapper extends BaseMapper<AccountRole> {
    @Select("SELECT id FROM account_role WHERE aid = #{aid}")
    Integer getRoleIdByAid(Integer aid);
}




